home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 205_01 / color.doc < prev    next >
Text File  |  1980-01-01  |  1KB  |  32 lines

  1. -------------------------------------------------------------------------------
  2.  COLOR
  3. -------------------------------------------------------------------------------
  4.  
  5. Format:
  6.  
  7.      color <foreground code>[ <background code>]
  8.  
  9. Purpose:
  10.  
  11. COLOR changes the colors on the screen according to the following color codes:
  12.  
  13.        Black:   0      Red:     1      Green:   2      Yellow:  3
  14.        Blue:    4      Magenta: 5      Cyan:    6      White:   7
  15.  
  16. The background color code may be omitted; the default is black.  To highlight
  17. the foreground color, append a plus after the foreground color code.
  18.  
  19. Examples:
  20.  
  21.      color 3 0    Yellow on black
  22.      color 4      Blue (on default black)
  23.      color 2+ 4   Bright green on blue
  24.  
  25. Note:
  26.  
  27. Since COLOR uses ANSI escape sequences, the following line must appear in the
  28. file named CONFIG.SYS on the root directory of the boot disk at the system 
  29. start.
  30.  
  31.      device=ANSI.SYS
  32.